import request from "./axios";

const api = "/api/v1";

interface reqIdVerifyProps {
  email?: string;
  hkiaId?: string; // 根据你的需求添加状态
  englishName?: string;
  chineseName?: string;
  companyId?: string;
  otherCompany?: string;
  mobile?: string;
  crewMember?: string;
}

interface userInfoReqParams {
  // 根据实际情况定义 params 的结构
  hkiaId: string;
  // 其他可能的属性
}
export const getIdVerifyUpdate = (params: any) => {
  console.log(params, "params");
  return request.post(`${api}/idVerify/update`, params);
};

export const saveIdVerify = (params: reqIdVerifyProps) => {
  return request.post(`${api}/idVerify/save`, params);
};

export const getUserInfo = (params: userInfoReqParams) => {
  return request.get(`${api}/idVerify/getUserInfo/${params.hkiaId}`);
};
